{extend name="common@base" /}
{block name="content"}
<style>
  .list-group {
    text-align: center;
  }
</style>
<section class="content" id="demo">
  <div class="row">
    <div class="col-xs-12">
      <div class="box box-default">
        <div class="box-header with-border">
          <div class="box-title">查看考卷</div> <div class="pull-right"> <a href="javascript:history.back();" class="btn btn-default">返回</a></div>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-xs-12 col-sm-9">
      {foreach $questions as $key=>$row}
      <div class="box box-primary" v-for="(item,index) in items">
        <div class="box-header with-border">
          <div class="box-title">{$key+1}、{$row.content}</div>
        </div>
        <div class="box-body">
          {:implode('<br/>',json_decode($row.answers,true))}
        </div>
        <div class="box-footer">
          <p class="label {$answers[$key] ===$row.right ? 'label-success' : 'label-danger'}">
            {:isset($answers[$key]) ? '考生选择：'.chr(65+$answers[$key]) : ""}
            【正确答案：{:chr(65+$row.right)}】</p>
        </div>
      </div>
      {/foreach}
    </div>
    <div class="col-xs-12 col-sm-3">
      <ul class="list-group">
        <li class="list-group-item">考生：{$realname}</li>
      </ul>
    </div>
  </div>
</section>
{/block}
{block name="page_script"}
<script>

</script>
{/block}





